﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CYTS.Aoyou.Framework.Context
{
    public class PerformanceBaseEntity
    {
        public PerformanceBaseEntity()
        {
        }

        public string ServerAddress { get; set; }

        public string ClientAddress { get; set; }

        public string ServerName { get; set; }

        public string ServiceType { get; set; }

        /// <summary>
        /// 执行时间
        /// </summary>
        public double ExecuteTime { get; set; }

        /// <summary>
        /// rades用到，最后更新redes时间
        /// </summary>
        public DateTime LastRecordTime { get; set; }

        /// <summary>
        /// 执行的方法名
        /// </summary>
        public string ExecuteFunName { get; set; }

        /// <summary>
        /// 接口名/服务名
        /// </summary>
        public string InterFaceName { get; set; }

        /// <summary>
        /// 记录次数
        /// </summary>
        public int TotelRecord { get; set; }

        /// <summary>
        /// rades中作为累加值
        /// </summary>
        public double TotelExcureTime { get; set; }

        /// <summary>
        /// monogdb中作为平均数
        /// </summary>
        public double AvgExcureTime { get; set; }
        /// <summary>
        /// monogdb中用到的时间按，记录时间
        /// </summary>
        [MongoDB.Bson.Serialization.Attributes.BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime RecordTime { get; set; }
    }
}
